from com.zjs.crawer.urlcontent.baseurlcontent import BaseUrlContent
from com.zjs.zjsqueue import zurlpathqueue
import logging

class ZhiLianHook(BaseUrlContent):
    
    __homeurl = None
    
    name = "zhilian"
    
    def __init__(self,homeurl):
        self.__homeurl = homeurl
        logging.debug("启动 hook:"+self.name)
    
    
    def run(self):
        for i in range(1,90):
            zurlpathqueue.put(self.name, "http://sou.zhaopin.com/jobs/searchresult.ashx?jl=%E6%B7%B1%E5%9C%B3&kw=%E6%95%B0%E6%8D%AE%E5%88%86%E6%9E%90&isadv=0&sg=5a0d8b7ea80d4083b3f78787eee559b2&p="+str(i))
            logging.debug("[hook]["+self.name+"]:"+self.name+ "http://sou.zhaopin.com/jobs/searchresult.ashx?jl=%E6%B7%B1%E5%9C%B3&kw=%E6%95%B0%E6%8D%AE%E5%88%86%E6%9E%90&isadv=0&sg=5a0d8b7ea80d4083b3f78787eee559b2&p="+str(i))
